package org.example.service;

import org.example.ann.DynamicExecutor;
import org.example.config.ExecutorConfig;
import org.example.config.XxlJobScan;

import java.util.List;

/**
 * @author zengxiaoyu
 * @date 2025/9/11 17:02
 */
public interface XxlJobConfigService {

    /**
     * 创建任务执行器，如果不存在则创建
     * @param executor
     */
    void createIfNotExist(ExecutorConfig executor) throws Exception;

    

    void createIfNotExist(List<DynamicExecutor> executors);

    void createJobIfNotExist(List<XxlJobScan.XxlJobInfoAnno> jobInfos);
}
